Method and system for transferring messages between messaging systems

ABSTRACT

A message interchange gateway for transferring messages between a first party and a second party includes an ingress module, arranged to accept at least one message from the first party, a session manger arranged to accept the at least one message from the ingress module, the session manager being further arranged in co-operation with a storage device having data, a message queuing module having at least one session-based message queue, and at least a first session handler having a first session. The first session handler is arranged in co-operation with a first session-based message queue for the processing of the at least one message according to an instruction from the session manager. The instruction is at least partially based on the data, and the first session handler is further arranged to dispatch, after processing, the at least one message from the first session-based message queue to the second party.

BACKGROUND

In the last decade, with the advent of the internet, a range ofmessaging applications have been developed. These include applicationssuch as the Short Messaging System (SMS) which is part of cellulartelephone standards and permits exchange of short text messages betweencellular phone users, instant messaging such as Jabber and Skype whichallow for exchange of text and files by internet users using a browseror an instant messaging client, and live chat systems such as LivePersonand Moxie which provide chat functionality in websites amongst otherthings.

While many of these messaging systems share similar functionality anduse similar protocols they are generally not designed to communicatewith each other and therefore all parties wishing to exchange messagesmust usually be using the same messaging system. This problem isamplified where, for example, one messaging system is stateless i.e.messages exchanged between parties are not associated together and theother is session oriented where messages are threaded and associatedwith one another.

Similarly messaging systems with similar functionality may even use thesame messaging protocol but are unable to exchange messages due to thesupplier of the system having implemented their system in a proprietaryfashion which prevents exchange of messages with users of third partymessaging systems.

Therefore there is a need for a system and methods for the exchange ofmessages between different messaging systems.

SUMMARY

In at least one exemplary embodiment, a system for transferring messagesbetween different messaging systems includes an ingress module, asession manager, a message queue, and a session handler.

In another exemplary embodiment, the session manager includes messagerouting logic for initiating one or more session handlers for a newmessage or for appending the new message to an existing session, and aqueue monitor for monitoring instances of the session handlers.

Another exemplary embodiment may include a system for transferringmessages between different messaging systems where one messaging systemis stateless and the other messaging system is session-oriented.

In yet another exemplary embodiment, a messaging method includesreceiving a message from a client, initiating a session with a remoteplatform, receiving a unique identifier from the remote platform, andpassing messages between the client and the remote platform associatedwith the unique identifier.

In yet another exemplary embodiment, a messaging method includesreceiving a message from a client, initiating a new session with aremote platform, receiving a response from the remote platformindicating that session creation is not possible, and transmitting amessage to the client indicating that connection is not possible.

The disclosed embodiments also include a system for transferringmessages between different messaging systems where one messaging systemis stateless and the other messaging system is session-oriented andwhere messages to the session oriented messaging system are switched toa stateless messaging system.

As part of the disclosed embodiments, a messaging method includesreceiving a message from a client, initiating a new session with aremote platform, receiving a response from the remote platformindicating that the session should be switched to another remoteplatform, initiating a new session with the second remote platform,receiving a unique identifier from the second remote platform, andpassing messages between the client and the remote platform associatedwith the unique identifier.

The disclosed embodiments are also directed to a system for transferringmessages between different session-oriented messaging systems which arenot configured to communicate with each other.

The disclosed embodiments are also directed to a messaging methodincluding initiating a first session with the first remote platform,associating a first unique identifier with the said first session,initiating a second session with a second remote platform, associating asecond unique identifier with the said second session, associating thefirst unique identifier with the second unique identifier, andtransferring messages between the first and second remote platformsassociated with the first and second unique identifiers.

The disclosed embodiments include a method of managing sessions in amessaging system including receiving a message, analyzing the message todetermine if it is associated with an existing session, initiating a newsession if the message is not associated with an existing session, andif the message is associated with an existing session, appending themessage to a queue of the existing session to which the message isassociated.

At least one exemplary embodiment includes a method of managing sessionsamong different remote platforms including receiving an initiationsignal specifying characteristics of one or more of the different remoteplatforms, and initiating a session with at least one of the one or moredifferent remote platforms.

Another exemplary embodiment includes a method of operating a sessionhandler including initiating a session with a remote host, detecting ifthe session has started, detecting if the session has been answered, andif the session has been answered establishing the session, initiating asession dispatcher, initiating a session monitor, otherwise terminatingthe session.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing aspects and other features of the present embodiments areexplained in the following description, taken in connection with theaccompanying drawings, wherein:

FIG. 1 shows a schematic block diagram of a system for transferringmessages according to the disclosed embodiments;

FIG. 2 shows an example of a message interchange gateway according tothe disclosed embodiments;

FIG. 3 shows an exemplary embodiment where a message interchange gatewayenables communication between a stateless protocol and asession-oriented protocol, according to the disclosed embodiments;

FIG. 4 shows a method for operating a message interchange gatewayaccording to the disclosed embodiments;

FIG. 5 shows another method for operating a message interchange gatewayaccording to the disclosed embodiments;

FIG. 6 shows a message interchange gateway system where messagesdestined for a session-based remote platform are routed instead to aroaming client according to the disclosed embodiments;

FIG. 7 shows a schematic of another method for operating a messageinterchange gateway according to the disclosed embodiments;

FIG. 8 shows a system including a message interchange gateway which isconfigured to enable users of session-based remote platforms tocommunicate with each other according to the disclosed embodiments;

FIG. 9 shows another method of operating a message interchange gatewayaccording to the disclosed embodiments;

FIG. 10 shows a diagram of exemplary session manager operationsaccording to the disclosed embodiments;

FIG. 11 shows a diagram of exemplary session handler operationsaccording to the disclosed embodiments;

FIG. 12 shows a method of operating a session handler according to thedisclosed embodiments; and

FIG. 13 shows a block diagram of a computing apparatus that may be usedto practice aspects of the disclosed embodiments.

DETAILED DESCRIPTION Definitions

A Message Interchange Gateway (MIG), may be implemented in hardware orsoftware. In some embodiments, an MIG may be resident on one or moreserver instances, where the server instances may be implemented ondedicated hardware or one or more virtual machines. Components of an MIGmay reside together on one server instance or within one piece ofhardware, or may be split across multiple server instances or hardwarecomponents.

A Gateway is a device used to connect two different networks.

A Remote Platform (RP) is any system with which an MIG can initiate,conduct and maintain a session, between an RP and a Client, said clientpossibly being another RP. An exemplary RP may be implemented as a webchat or Instant Messaging (IM) system, using protocols such as HTTP,HTTPS, XMPP, BOSH and any other protocol suitable for systemcommunications. Examples of RP systems include, but are not limited to,web chat systems such as those supplied by Liveperson, eGain, UpstreamWorks, Avaya, Oracle, Cisco, Jabber.

A Client is an entity for initiating interaction with an RP. Such clientmay include, but is not limited to, a program running on a device suchas a mobile phone using SMS, or similar phone-based application, forinteracting with MIG, or the Client could be another instance of an RP,using a different software type or version, or a different protocolspecification from the RP with which the session is being initiated.

An RP_Type is an object which describes how a particular interactiontype is initiated, conducted and terminated. A different RP_Type objectis defined for each type of RP, meaning each version of each softwaretype with which MIG can interact. The RP-Type object dictates to theprocesses on the MIG what syntax to use when conducting a session, whatprotocol to implement said session over, and a number of parametersrelating to the operation of the interaction.

The Session Manager (SM) is a process responsible for initiating newinstances of SH when a new session is required, and for monitoring saidinstances of SH, and for passing messages originating with Client to thequeuing mechanism specific to the SH to which said message relates.

The Session Handler (SH) deals directly with connections to RP,initiating new sessions, maintaining and monitoring these sessions, andterminating said sessions as required.

A Session is a series of related messages, a conversation or dialogbetween 2 parties, in the context of this document a chat sessioninvolves 2 parties exchanging messages within a defined time period,usually within a single context. A session has a clearly definedinitiation, a period of interaction in one or both directions, and atermination, said termination being triggered by a terminating call fromeither party, or by a period of inactivity, or timeout, period elapsing.

Stateless interaction occurs when each message or exchange of data is astand-alone event, most often occurring over a temporary connectionwhereby a connection between two parties is opened, data is passed, andthe connection is closed again. Such discrete events are regarded asbeing stateless, where one message bears no direct connection to aprevious message in the same conversation or dialog.

Session-oriented interaction involves the use of a session key, or othertracking mechanism, to ‘bind’ events in a stateless protocol, such asHTTP, together into a ‘threaded’ sequence, thus providing context to anotherwise standalone piece of data.

Unique ID's are employed at a number of points in the data flow. Theseare identifiers which uniquely identify the session or thread to which acomponent piece of dialog belongs. These can be assigned either randomlyor sequentially, but must be unique for the duration of the relevantdialog.

A Session Monitor is a software process which polls, at configurableintervals, the Remote Platform (RP), requesting any new events relatingto a particular session, identified by its unique ID, which may havebeen generated on the RP in the time which has elapsed since the lastpoll of this session.

A Session Dispatcher is a software process responsible for initiating anew session with the RP, for forwarding any messages destined for the RPand related to this session, and for the ultimate termination, ifappropriate, of said session.

Embodiments

FIG. 1 shows a schematic block diagram of a system 100 for transferringmessages according to the disclosed embodiments. Although variousaspects will be described with reference to the exemplary embodimentsshown in the drawings and described below, it should be understood thatvarious aspects could be embodied in many alternate forms ofembodiments. In addition, any suitable size, shape or type of elementsor materials may be used.

FIG. 1 shows a system 100 for transferring messages between differentmessaging systems that would otherwise be incompatible. The system 100generally includes a Message Interchange Gateway (MIG) 105, devices 110a, 110 b running online clients 115 a, 115 b connected to RemotePlatforms (RP) 120 a, 120 b, respectively, one or more wireless clients125 running on wireless devices 145, and at least one device 140 runninga roaming client 140. The MIG 105 provides the mechanism wherebysession-oriented dialog or data exchange can be initiated and maintainedfor the duration of said session, between multiple disparate parties,including the remote platforms 120 a, 120 b, wireless subscribers 125and roaming client 140 ,where the parties may be operating on varyinghardware platforms and operating systems, varying software types orversions, or communicating with the MIG 105 via varying protocols, theMIG 105 providing interoperability between said parties and any suchvariances found in the specific combinations encountered.

For example, an online client 115 a may be using a messaging systemwhich uses a remote platform 120 a hosted on the internet 135 and whichis accessed by a another client running on another computer, wirelessdevice or tablet device 110 a. The online client 115 a may wish tocommunicate with another online client 115 b which is connected to adifferent remote platform 120 b also hosted on the internet 135 butwhich is not connected to the remote platform 120 a of the online client115 a. Alternatively the online client 115 a may wish to exchangemessages with wireless subscribers 125 who are connected to a cellularor other wireless network using a wireless handset configured to sendand receive messages using the short messaging system (SMS). In anotheralternative, the online client 115 a may wish to exchange messages withroaming client 130, running on device 140 that is currently notconnected to a remote platform 120 b, where messages intended to beexchanged using the remote platform 120 b are copied or otherwisedirected to device 140 when remote from the device 110 b which isrunning the online client 115 b connected to the remote platform 120 b.In each case the MIG 105 receives a message intended for an otherwiseincompatible destination and processes it so that it can be received bythe otherwise incompatible destination and process. In addition the MIG105 is configured to receive replies and to process them in such a waythat two way exchange of messages is possible between otherwiseincompatible messaging systems.

FIG. 2 shows an example of the MIG 105. The MIG 105 can be implementedin software or hardware or a combination of software and hardware. Inthe case of a software-based MIG it may include software code residenton one or more server instances, said server instances being either ondedicated hardware or virtual in nature. Components of the MIG 105 canreside together on one server instance, or may be split across multipleserver instances, as required by environmental, performance and capacityrequirements.

The MIG 105 may include several components including, but not limited toan ingress module 205, a session manager 210, a message queuing module215, one or more session handlers 220 ₁-220 _(n) and a storage device225. It will be understood that each of the components of the MIG 105may include hardware components, software processes or any combinationof software and hardware. The ingress module 205 exposes an interface towhich messages can be directed by external entities. The ingress module205 may use but is not restricted to the use of a transfer protocol suchas the Hypertext Transfer Protocol (HTTP) or HTTP over TLS (HTTPS) asthe protocol over which messages are directed. Messages received by theingress module 205 are passed to a session manager 210, for example, bysocket communications or over a protocol such as HTTP. The sessionmanager 210, through a series of algorithmic processes, drawing on datafrom process memory and/or querying storage facilities, acts upon saidmessages, either by initiating a new session handler instance 220 ₁, orby passing the message directly to an existing session-associatedmessage queue managed by message queuing module 215. The message queuingmodule 215 may be implemented in any combination of hardware orsoftware. Exemplary software implementations may include the AdvancedMessage Queuing Protocol (AMQP) or Redis. The message queuing module 215stores session related messages in session-specific queues, forconsumption by relevant Session Handler process threads. The one or moresession handlers 220 ₁-220 _(n) are each devoted to a specific sessionon the MIG 105, responsible for initiation, maintenance and ultimatedestruction of a Session Thread. Each session handler 220 ₁-220 _(n)takes messages from an appropriate queue on the message queuing module215 and dispatches them to the intended destination which may be aRemote Platform 120 a, 120 b or another client 125, 130 capable ofreceiving messages. Additionally the message queuing module 215retrieves messages from a Remote Platform 120 a, 120 b or client 125,130 capable of sending messages and, where appropriate, relays saidmessage to the intended destination or other party involved in session.The intended destination may be a remote device, such as, but notrestricted to, a wireless phone, or another MIG session. The one or moresession handlers 220 ₁-220 _(n) also write information concerning themessage such as the message content, timestamp, and read receipt to thestorage device 225. The storage device 225 may be a database which maybe held locally or remotely in a database system connected to the MIG105 using a communication system capable of transmitting and receivingdata.

FIG. 3 shows an exemplary embodiment where an MIG 305 enablescommunication between a stateless protocol, for example SMS, utilized bymobile subscribers 325 and a session-oriented protocol, such as awebchat environment which may be utilized by remote platform 320 a. Theinitiator, for example, one of the mobile clients 325, sends a messageas SMS. This is received by the MIG 105 which either initiates a newsession with the remote platform 320, or passes the message as part of apreviously initiated session. The remote platform 320 sees this SMSarrive as a chat message, as part of a webchat session. Thecorresponding online client 315 can then respond to said message as awebchat message, dispatching the response as part of the ongoing sessionwith the MIG 105. The MIG 105 receives the webchat message and convertsthe webchat message to the stateless protocol, SMS in this example,which it dispatches to the initiating mobile client 325. In this way asession-oriented messaging system which normally could not communicatewith an incompatible stateless messaging system can exchange messages.

FIG. 4 shows a method 400 for operating a MIG 405 where an online client415 is available to interact with a another client 425, where the methodincludes the following transactions:

-   -   1) The other client 425 initiates interaction by sending a        message which is routed to the MIG 405.    -   2) The MIG 405, having extracted and calculated a required        destination and corresponding environmental parameters from the        contents of the message and from other data accessible to the        MIG 405 initiates new a session with the Remote Platform (RP)        420, using session initiation procedures specific to the RP type        and version of the remote platform 420.    -   3) The remote platform 420 responds indicating successful        session initiation and returning to the MIG 405 a unique Session        Identifier (Sid) for the new session. The MIG 405 creates a        mapping between a local session identifier, localSId, and a        remote session identifier remoteSid, and initiates a session        handler thread to process exclusively this session until it is        terminated.    -   4) The MIG 405 passes, via the Session Handler initiated in step        3, the initial message from the Client to the remote platform        420, for handling by an online client 415, which may be, for        example, operated by a user on a computer or wireless device or        mobile phone. In some embodiments, the online client 415 may be        an automated message processing system.    -   5) At configurable intervals the MIG 405, using the Session        Handler, queries or ‘polls’ the remote platform 420 for events,        such as the receipt of a message from the online client 415 or        receipt of a system message to indicate termination of this        session or any other information, messages or systems messages        as may be generated by the remote platform 420.    -   6) Any subsequent messages from the other client 425 to the        remote platform 420 are passed as per step 4.    -   Steps 5) and 6) repeat throughout the session until such time as        the session is terminated, either by the online client 415, the        other client 425, or a timeout condition    -   7). A timeout conditions occurs when no activity has occurred        within a configurable per session timeout period.

FIG. 5 shows an alternative method 500 for operating a MIG 505 where anonline client 515 is unavailable to interact with another client 525.The method includes the following transactions:

-   -   1) The other client 525 initiates interaction by sending a        message which is routed to the MIG 505.    -   2) The MIG 505, having extracted and calculated required        destination and corresponding environmental parameters from the        contents of the message and from other data accessible to the        MIG 505 initiates new a session with the Remote Platform (RP)        520, using a session initiation procedures specific to the RP        type and version of the remote platform 520.    -   3) The remote platform 520 responds indicating that session        creation is not possible at this time.    -   4) The MIG 505 generates and sends a message to the other client        525, using pre-configured message content specific to the remote        platform 520, indicating unavailability of service.

FIG. 6 shows a MIG system 600 configured so that where an online clientis not operating a session-based remote platform, for example a web chatsystem and is instead operating as a ‘roaming’ client, having messagesdestined for the session-based remote platform, routed instead to theroaming client 630 on a remote communication device 640, for example awireless phone, using a protocol such as, but not limited to, SMS. Inthis case the MIG 605 is configured to redirect messages intended for aRemote Platform to a roaming client 630 running on a remotecommunications device 640 in such a way that the sender of the messageis unaware that the message has been switched to another device ormessaging system.

FIG. 7 shows a schematic of a method 700 for operating a MIG 705 where aclient 630 is available to interact with another ‘client’ 725, but notthrough a remote platform 720 normally associated with the client. Inthis case a remote platform-specific configuration may be stored on, ormay be accessible by, the MIG 705, and the communication session may beprovided using an alternate messaging system which may be another remoteplatform or an SMS exchange with a roaming client 630 running on adevice, for example, a wireless handset. The method includes thefollowing transactions:

-   -   1) The other client 725 initiates interaction by sending a        message which is routed to the MIG 705.    -   2) The MIG 705, having extracted and calculated a required        destination and corresponding environmental parameters from the        contents of the message and from other data accessible to the        MIG 705 initiates new a session with the Remote Platform (RP)        720, using session initiation procedures specific to the RP type        and version of the remote platform 720.    -   3) The remote platform 720 responds to the MIG 705 indicating        unsuccessful session initiation. The MIG 705 accesses remote        platform-specific configuration data stored on the MIG 705 and        creates a mapping between the local session identifier        (localSId) and the alternative communication means, which, for        example, may be one or more roaming clients 730 running on one        or more alternate devices 740, such as mobile handsets.    -   5) Client messages are now transferred, via the newly        established channels, to the one or more alternate devices 740.        In one example this could be through use of an SMS gateway to        the alternate device 740.    -   6) Responses from the roaming client 730 are transmitted to the        MIG 705    -   7) Responses from the roaming client 730 that are transmitted to        the MIG 705 are mapped to the localSid; and    -   8) The mapped responses are transmitted to the client 725.

Steps 1,4,5,6,7,8 are exercised repeatedly, triggered as required bymessages arriving to the MIG 705 from either the other client 725 or theroaming client 730, and exchanging said messages between the twoparties, until such time as a period of inactivity, of a durationconfigurable per the remote platform 720, elapses, at which time thesession is deemed terminated, and the Session Handler terminates.

FIG. 8 shows a system 800 including a MIG 805 which is configured toenable users of session-based remote platforms 820 a, 820 b whichnormally could not communicate with each other to communicate with eachother and to exchange messages. This allows intercommunication betweenpreviously unconnected platforms. The remote platforms 820 a, 820 b maybe from the same, or different, vendors, running the same, or different,software versions, operating over the same, or different, protocols. Inthis case, the MIG 805 is configured to reformat messages from a device810 a communicating with one remote platform 820 a into the formatexpected by another remote platform 820 b for receipt of the messages bya device 810 b and to perform such reformatting as messages are passedbetween the devices 810 a, 810 b of the remote platforms 820 a, 820 b,respectively. In that way users of normally incompatible messagingsystems can exchange messages in a similar way as if each user was usingthe same messaging system.

FIG. 9 shows a method 900 of operating a MIG 905 which is configured toenable users of session-based communications platforms which normallycould not communicate with each other to communicate with each other andto exchange messages. For example, the users of a first Remote Platform920 a and a second Remote Platform 920 b may be geographically separatedor the remote platforms 920 a, 920 b may be operated by differententities or enterprises where each have selected a preferred messagingsystem. Additionally the remote platforms 920 a, 920 b may be runningsoftware and hardware of different types and versions or from differentvendors. Using this method, such disparate systems can transparentlyexchange messages using existing and familiar interfaces without theneed to subscribe to another remote platform or messaging system or toinstall new or different versions of software or to purchase additionalhardware.

-   -   1) The online client 815 running on device 810 a sends a message        to the first remote platform 920 a, which initiates the        interaction by sending an initiation message to the MIG 905        either directly or indirectly, this may be done, for example by        a call to a Uniform Resource Locator (URL) on the MIG 905,        indicating a requirement to initiate a session with the second        remote platform 920 b, optionally providing a routing parameter        (Qid) indicating a queue identifier of the online client 815.    -   2) The MIG 905, having extracted and calculated required        destination and corresponding environmental parameters from the        contents of the message and from other data accessible to the        MIG, initiates a new session with the initiating first remote        platform 920 a, using session initiation procedures specific to        the RP type and version of the first remote platform 920 a, and        optionally providing a Qid to the first remote platform 920 a to        aid in routing the initiated session to the online client 815 a.    -   3) The first remote platform 920 a responds indicating        successful session initiation, returning to the MIG 905 a unique        Session Identifier (SId_RP1) for the new session the MIG 905        creates a mapping between a local session ID (Sid_L1) and        Sid_RP1, and initiates a session handler (SH1) thread 925 to        process exclusively this session until its eventual termination.    -   4) The MIG 905, having extracted and calculated required        destination and corresponding environmental parameters from the        contents of the message and from other data accessible to the        MIG 905, initiates a new session with the second remote platform        920 b, using session initiation procedures specific to the RP        type and version of the second remote platform 920 b.    -   5) The second remote platform 920 b responds indicating        successful session initiation, returning to the MIG 905 a second        unique Session Identifier (SId_RP2) for the new session. The MIG        905 creates a mapping between a second local session ID (Sid_L2)        and Sid_RP2, and initiates a second session handler (SH2) thread        930 to process exclusively this session until its eventual        termination.    -   6) At configurable intervals the MIG 905, via Session Handlers        SH1 925 and SH2 930, queries or ‘polls’ the first and second        remote platforms 920 a, 920 b for events such as receipt of a        message from one of the online clients 815 a, 815 b or receipt        of a system message such as a system message to indicate session        termination or other information or systems messages as may be        generated by the first or second remote platforms 920 a, 920 b.    -   7) Messages received as a result of step 6, by either the SH1        925 or the SH2 930, from either the first remote platform 920 a        or the second remote platform 920 b, forming part of the        inter-agent interaction, are passed by the MIG 905 between the        SH1 925 and the SH2 930 for delivery to the appropriate remote        platform.    -   Steps 6) and 7) repeat throughout the session until such time as        the session is terminated, either by either online client 815 a        or online client 815 b, or by a timeout condition    -   (8) When a timeout condition occurs, whereby no activity has        occurred within a configurable per session timeout period, the        session is terminated.

FIG. 10 shows a diagram 1000 of the Session Manager operations. Thesession manager 210 may be a single process or multiple instances of aprocess resident on the MIG 205 which initiates and maintains the set ofsession handlers 220 ₁-220 _(N) and routes messages received from one ormore Ingress Modules 205 to the Message Queuing process 215. Messagesarriving into the session manager 210 can be via inter-socketcommunications or, in the case of an ingress module 205 which resides ona separate server instance either dedicated or virtual in nature, overan IP protocol or similar protocol, such as HTTP or HTTPS. Upon receiptof said message which may be in a specified format, for example the JSONformat, the session manager 210 may use message routing logic 1005 toprocess the message so that it may be routed to its intendeddestination. Based upon the destination address, the source address, andother factors related to the inbound message, the session manager 210may process the message further, and may initiate a new session tohandle the message, or if a session has already been initiated it mayappend the message to the in-transit queue for an existing session. Suchprocessing may be carried out by a process using resources drawn fromin-memory configuration, and stored configuration data, drawn from asystem database or storage module, residing on the same server instanceas SM, or on a remote server. The session manager 210 may also include aqueue monitor 1010 to monitor instances of the session handlers 220₁-220 _(N) to ensure the queues are being serviced in a timely fashion.

FIG. 11 shows a diagram of exemplary session handler operations. Thesession handler 220 may be a single process, or multiple instances of aprocess resident on a MIG. The session handler 220 initiates andmaintains a session with an instance of a remote platform 1120, androutes messages to and from said session. Upon initiation of the sessionhandler 220 by the session manager 210, parameters are specified whichare required to initiate a session with the appropriate remote platform1120 including the networking details such as remote platformAddress/Port numbers, which protocols are required (HTTP, XMPP), theRP-Type (whether this is using Liveperson, eGain, etc.), and any otherrelevant information. The session handler 220 then initiates a sessionwith the remote platform 1120 using methods specific to the RP-Type. Asthe session handler 220 is capable of interacting with a variety ofdifferent types of remote platforms 1120, the RP-Type is a profile ortemplate which dictates how the session handler 220 should initiate thesession, for example, over which protocol (XMPP, HTTP, etc.), whether touse Secure Sockets Layer (SSL) or not, and the semantics required foreach of the session handler processes. Different RP-Types requiredifferent methods and semantics when initiating, polling, communicatingover, or terminating sessions with said RP-Type. Different RP-Typeswould typically apply to remote platform software from differentvendors, or differing versions of the same software.

Session handler 220 interacts with remote platform 1120 using 2sub-processes, monitor 1125 and dispatcher 1130. Dispatcher 1130 takesany messages presented by a client or user, destined for remote platform1120, converts said message into a format dictated by RP-Type, andpasses, over appropriate channels and protocols, said message to remoteplatform 1120. Messages generated by remote platform 1120, destined fora client or user, need to be retrieved by session handler 220. Toachieve this, session handler 220 utilizes the monitor sub-process 1125to poll, or query at configurable and variable frequencies, remoteplatform 1120, using semantics and protocols as dictated by the RP-Type,to retrieve any such messages, relaying any retrieved messages forpresentation to the client or user related to the session being handled.

FIG. 12 shows a method 1200 of operating -the session handler 220. Thesession handler 220 is initiated by the session manager 210 as shown inblock 1205. The initiation process passes a number of parameters to thesession handler 220, including, but not limited to, connection detailsof the remote platform 120 to begin interacting with, including IPaddress, port number, protocol, RP_Type, details of the online client orother initiating party including from_address, callerid, name, etc., andlocal session information including local session_id, and queue_name.Using this information, the session handler 220 opens a networkconnection to the appropriate remote platform IP address and port aspassed by the session manager 210, using the protocol and syntaxappropriate to this instance of RP_Type, thus initiating a new sessionon the remote platform 120 as shown in block 1210. Upon successfulsession initiation, as shown in block 1215, the remote platform 120passes a remote_SID to the session handler 220, which the sessionhandler 220 will use in all future interaction with the remote platform120 in relation to this particular session. If session initiation isunsuccessful, the session handler 220 will take one of two optionalactions. These possible actions are dictated by the instance of theRP-Type associated with this intended session. Session Initiationfailures are deemed to be of one of two possible types. A TemporaryFailure, shown in block 1220 will result in the session handler 220retrying session initiation a configurable number of times atconfigurable intervals. These configuration parameters are set withinthe RP-Type profile being followed by the session handler 220. Havingexhausted this retry mechanism, the failure is escalated by the sessionhandler 220 to a Permanent Failure, shown in block 1225, and allattempts to initiate a new session with the remote platform 120 areterminated, and the session handler 220 terminates after having cleanedup message queues and taken any alerting actions as dictated by theactive RP-Type profile. Upon successful session initiation, the sessionhandler 220 will begin polling, a configurable number of times atconfigurable intervals, shown in block 1230, to ascertain whether thenew session has been answered by a client, said client being operated bya user or automated. If a session is not deemed answered within theconstraints of these retry parameters, the session is regarded as timedout, and terminated using the Permanent Failure procedure above. If thesession is deemed as answered, the interaction proceeds with the sessionhandler 220 passing, via the Session Dispatcher Function according tothe protocol and syntax dictated by the RP_Type, the initial message,and any subsequent messages retrieved from the session specific messagequeue on the message queuing module 215 to the remote platform 120 forhandling by that remote system, as shown in block 1235. In parallel, asshown in block 1240, the session handler 220 operates a pollingmechanism, or Session Monitor Function 1125, which polls, atconfigurable intervals, using syntax and protocol as dictated byRP_Type, for any events on the remote platform in relation to thissession, such events typically being, but not limited to, indication ofAgent Activity, production of a message from the remote platform 120intended to form part of the textual interaction, or terminationmessages from the remote platform. The Session Monitor Function,responds to any events by algorithmically parsing them, according torules specific to the active RP-Type, and acting upon said parsed eventnotifications in one of a number of ways. Certain messages are discardedas informational in nature, some are relayed to the initiating party, orClient, some are interpreted a impacting upon the session in progress,perhaps in the event of RP terminating session, or similar event.Configurable timeout periods are observed by both the Session Monitorand Session Dispatcher Functions, with the elapsing of both theseperiods indicating that the session should be terminated as in the caseof Permanent Failure above.

In at least one aspect of the disclosed embodiment, the techniquesdisclosed herein may be executed by one or more computers under thecontrol of one or more programs stored on a computer readable medium.FIG. 13 shows a block diagram of a computing apparatus 1300 that may beused to practice aspects of the disclosed embodiments. For example, anyof the devices, remote platforms, and message interchange gatewaysdisclosed herein, alone or in any combination, may be implemented usingthe computing apparatus 1300. The computing apparatus 1300 may includecomputer readable program code 1302 stored on at least onenon-transitory computer readable medium 1304 for carrying out andexecuting the process steps described herein. The computer readablemedium 1304 may be a memory of the computing apparatus 1300. Inalternate aspects, the computer readable program code may be stored in amemory external to, or remote from, the apparatus 1300. The memory mayinclude magnetic media, semiconductor media, optical media, or any mediawhich is readable and executable by a computer. Computing apparatus 1300may also include a microprocessor 1306 for executing the computerreadable program code 1302 stored on the at least one computer readablemedium 1304. In at least one aspect, computing apparatus may include oneor more input or output devices, generally referred to as a userinterface 1308 which may operate to allow input to the computingapparatus 1300 or to provide output from the computing apparatus 1300.

As another example, any of the devices, remote platforms, and messageinterchange gateways disclosed herein, alone or in any combination, maybe implemented using dedicated computer hardware or utility computingservices provided by one or more third parties, e.g. one or more of aremote, cluster, distributed, grid or cloud computing service.

It should be understood that the foregoing description is onlyillustrative of the disclosed embodiments. Various alternatives andmodifications can be devised by those skilled in the art withoutdeparting from the embodiments as disclosed. Accordingly, the disclosedembodiments are intended to embrace all such alternatives, modificationsand variances that fall within the scope of the appended claims.

1. A message interchange gateway, for transferring messages between afirst party and a second party, comprising: at least one storage deviceand a microprocessor, the at least one storage device and amicroprocessor being configured to: arrange an ingress module to acceptat least one message from the first party, arrange a session manager toaccept the at least one message from the ingress module, said sessionmanager being further arranged in co-operation with, the at least onestorage device comprising data, said data comprising informationconcerning the at least one message and, a message queuing modulecapable of comprising at least one session-based message queue, and, atleast a first session handler comprising a first session, arrange saidfirst session handler in co-operation with a first session-based messagequeue comprised in the at least one session-based message queue, forprocessing of the at least one message according to an instruction fromthe session manager, said instruction being at least partially based onthe data, further arrange said first session handler to dispatch, afterprocessing, the at least one message from the first session-basedmessage queue to the second party.
 2. The message interchange gateway asclaimed in claim 1, wherein the session manager is arranged to initiatethe first session handler or a plurality of sessions handlers includingthe first session handler.
 3. The message interchange gateway as claimedin claim 1, wherein the session manager further comprises a queuemonitor, to monitor instances of the first session handler or aplurality of session handlers to ensure session-based queues are beingserved in timely fashion.
 4. The message interchange gateway as claimedin claim 1, wherein at least the first session handler comprises atleast one session thread.
 5. The message interchange gateway as claimedin claim 4, wherein the first session based message queue is arranged,by the message queuing module, to store session related messages insession specific queues according to the at least one session thread. 6.The message interchange gateway as claimed in claim 1, wherein the firstsession handler comprises one or more of a monitor or a dispatcher. 7.The message interchange gateway as claimed in claim 1, wherein at leastthe first session handler is arranged to one or more of: directlyconnect with the second party; receive at least one return message fromthe second party; or initiate at least one session.
 8. The messageinterchange gateway as claimed in claim 1, wherein the first sessionhandler is further arranged to write the information to the at least onestorage device, said information comprising at least one of: a messagecontent, a timestamp, a read receipt.
 9. The message interchange gatewayas claimed in claim 1, wherein the ingress module is arranged to utilisea transfer protocol, or inter socket connection to the session manager.10. The message interchange gateway as claimed in claim 1, wherein oneor more of the first or second parties comprise at least one of: aremote platform; a wireless client or subscriber; or a roaming client.11. The message interchange gateway as claimed in claim 10, wherein theremote platform comprises a system with which the message interchangegateway can initiate, conduct and maintain a session.
 12. The messageinterchange gateway as claimed in claim 1, wherein the first and secondparties comprise mutually incompatible messaging systems.
 13. Themessage interchange gateway as claimed in claim 1, wherein the messageinterchange gateway is arranged to be one or more of capable to acceptmultiple protocols at the ingress module or capable to output, by meansof at least one of the multiple protocols, at the first session handler.14. The message interchange gateway as claimed in claim 13, wherein themultiple protocols comprise at least one of: Hypertext Transfer Protocol(HTTP), Hypertext Transfer Protocol Secure (HTTPS), Extensible Messagingand Presence Protocol (XMPP), and Bidirectional-streams Over SynchronousHTTP (BOSH).
 15. The message interchange gateway as claimed in claim 14,wherein the use of a first protocol by the first session handler is oneor more of comprised in the instruction or is at least partially basedon the data.
 16. The message interchange gateway as claimed in claim 1,wherein the message interchange gateway is implemented in hardware. 17.The message interchange gateway as claimed in claim 1, wherein the atleast one storage device comprises a database held locally or remotely.18. The message interchange gateway as claimed in claim 1, furthercomprising a plurality of ingress modules, each arranged in cooperationwith the session manager.
 19. A messaging system comprising a messageinterchange gateway as comprised in claim
 1. 20. A method of operating amessage interchange gateway for transferring messages between a firstparty and a second party, comprising: arranging an ingress module toaccept at least one message from the first party; arranging a sessionmanager to accept the at least one message from the ingress module, andfurther arranging said session manager in co-operation with, a storagedevice comprising data, said data comprising information concerning theat least one message and, a message queuing module capable of comprisingat least one session-based message queue, and, at least, a first sessionhandler comprising a first session; arranging said first session handlerin co-operation with a first session- based message queue comprised inthe at least one session-based message queue, for processing of the atleast one message according to an instruction from the session manager,basing said instruction being at least partially on the data; furtherarranging said first session handler to dispatch, after processing, theat least one message from the first session-based message queue to thesecond party.
 21. The method of operating the message interchangegateway as claimed in claim 20, further comprising: arranging thesession manager to initiate the first session handler or a plurality ofsessions handlers including the first session handler.
 22. The method ofoperating the message interchange gateway as claimed in claim 20,further comprising: arranging the session manager to comprise one ormore of a queue monitor, to monitor instances of the first sessionhandler or the plurality of session handlers to ensure session-basedqueues are being served in timely fashion.
 23. The method of operatingthe message interchange gateway as claimed in claim 20, furthercomprising: arranging the at least the first session handler to compriseat least one session thread.
 24. The method of operating the messageinterchange gateway as claimed in claim 23, further comprising:arranging the first session based message queue, by the message queuingmodule, to store session related messages in session specific queuesaccording to the at least one session thread.
 25. The method ofoperating the message interchange gateway as claimed in claim 20,further comprising: arranging the first session handler to comprise oneor more of a monitor or a dispatcher.
 26. The method of operating themessage interchange gateway as claimed in claim 20, further comprising:arranging the at least the first session handler to one or more of:directly connect with the second party; receive at least one returnmessage from the second party; initiate at least one session; maintainand monitor the at least one session or terminate the at least onesession.
 27. The method of operating the message interchange gateway asclaimed in claim 20, further comprising: arranging the first sessionhandler to write information to the storage device, said informationcomprising at least one of: a message content, a timestamp, a readreceipt.
 28. The method of operating the message interchange gateway asclaimed in claim 20, further comprising: arranging the ingress module toutilise a transfer protocol.
 29. The method of operating the messageinterchange gateway as claimed in claim 20, further comprising:arranging one or more of the first or second parties to comprise atleast one of: a remote platform; a wireless client or subscriber; aroaming client.
 30. The method of operating the message interchangegateway as claimed in claim 29, further comprising: arranging the remoteplatform to comprise a system with which a message interchange gatewaycan initiate, conduct and maintain a session.
 31. The method ofoperating the message interchange gateway as claimed in claim 20,further comprising: arranging the first and second parties to one ormore of comprise mutually incompatible messaging systems or communicateusing mutually different protocols.
 32. The method of operating themessage interchange gateway as claimed in claim 20, further comprising:arranging the message interchange gateway as one or more of capable toaccept multiple protocols at the ingress module or capable to output, bymeans of at least one of the multiple protocols, at the first sessionhandler.
 33. The method of operating the message interchange gateway asclaimed in claim 32, further comprising: arranging the multipleprotocols to comprise at least one of : HTTP, HTTPS, XMPP, BOSH.
 34. Themethod of operating the message interchange gateway as claimed in claim33, further comprising: the use of a first protocol by the first sessionhandler is one or more of comprised in the instruction or at leastpartially based on the data.
 35. The method of operating the messageinterchange gateway as claimed in claim 20, further comprising:implementing the message interchange gateway in hardware.
 36. The methodof operating the message interchange gateway as claimed in claim 20,further comprising: arranging the storage device to comprise a databaseheld locally or remotely.
 37. The method of operating the messageinterchange gateway as claimed in claim 20, further comprising:arranging the message interchange gateway to further comprise aplurality of ingress modules, each arranged in cooperation with thesession manager.
 38. The method of operating the message interchangegateway as claimed in claim 20, further comprising: arranging the firstsession handler to effect at least one of : initiating the first sessionwith the second party, detecting if the first session has started,detecting if the first session has been answered, and if the firstsession has been answered establishing the first session, initiating afirst session dispatcher, initiating a first session monitor, andotherwise terminating the first session.
 39. A non-transitorycomputer-readable medium having instructions stored thereon that, whenexecuted by a computer, cause the computer to execute the method asclaimed in claim
 20. 40. The message interchange gateway as claimed inclaim 4 wherein the at least one session thread comprises one or more ofa unique identifier, or at least one session key, for the cooperativearrangement of the at least one message with at least one relatedmessage.
 41. The message interchange gateway as claimed in claim 7,wherein at least the first session handler is arranged to initiate atleast one session; and maintain and monitor the at least one session; orterminate the at least one session.
 42. The message interchange gatewayas claimed in claim 9, wherein the ingress module is arranged to utilisean Hypertext Transfer Protocol (HTTP) or Hypertext Transfer ProtocolSecure (HTTPS) connection to the session manager.
 43. The messageinterchange gateway as claimed in claim 9, wherein the ingress module isarranged to provide the at least one message to the session manager in apre-determined format.
 44. The message interchange gateway as claimed inclaim 9, wherein the ingress module is arranged to provide the at leastone message to the session manager in JavaScript Object Notation (JSON)format.
 45. The message interchange gateway as claimed in claim 10,wherein the first or second parties comprise the wireless client orsubscriber running on a wireless device.
 46. The message interchangegateway as claimed in claim 10, wherein the first or second partiescomprise the roaming client running on a device.
 47. The messageinterchange gateway as claimed in claim 11, wherein the remote platformis arranged in co-operation with a client.
 48. The message interchangegateway as claimed in claim 11, wherein the remote platform comprises aweb chat or instant messaging system.
 49. The message interchangegateway as claimed in claim 1, wherein the first and second parties arearranged to communicate using mutually different protocols.
 50. Themessage interchange gateway as claimed in claim 1, wherein the messageinterchange gateway is arranged as a distributed system.
 51. The messageinterchange gateway as claimed in claim 17, wherein the at least onestorage device comprises the database held locally or remotely in adatabase system.
 52. The message interchange gateway as claimed in claim17, wherein the storage device comprises the database held locally orremotely and connected to the message interchange gateway using acommunication system capable of transmitting and receiving the data. 53.The method of operating a message interchange gateway as claimed inclaim 23, wherein the at least one session thread comprises one or moreof a unique identifier, or at least one session key, for the cooperativearrangement of the at least one message with at least one relatedmessage.
 54. The method of operating the message interchange gateway asclaimed in claim 28, wherein the transfer protocol includes one or moreof Hypertext Transfer Protocol (HTTP), Hypertext Transfer ProtocolSecure (HTTPS), or inter socket connection to the session manager. 55.The method of operating the message interchange gateway as claimed inclaim 28, further comprising providing the at least one message to thesession manager in a pre-determined format.
 56. The method of operatingthe message interchange gateway as claimed in claim 55, wherein thepre-determined format is JavaScript Object Notation (JSON).
 57. Themethod of operating the message interchange gateway as claimed in claim29, further comprising arranging one or more of the first or secondparties to comprise a wireless client or the subscriber running on awireless device.
 58. The method of operating the message interchangegateway as claimed in claim 29, further comprising arranging one or moreof the first or second parties to comprise a roaming client running on adevice.
 59. The method of operating the message interchange gateway asclaimed in claim 30, wherein the remote platform is arranged incooperation with a client.
 60. The method of operating a messageinterchange gateway as claimed in claim 30, wherein the remote platformcomprises a web chat or instant messaging system.
 61. The method ofoperating the message interchange gateway as claimed in claim 35,further comprising implementing the message interchange gateway inhardware as a distributed system.
 62. The method of operating themessage interchange gateway as claimed in claim 36, further comprisingarranging the storage device to comprise the database held locally orremotely in a database system.
 63. The method of operating the messageinterchange gateway as claimed in claim 36, further comprising arrangingthe storage device to comprise the database held locally or remotelyconnected to the message interchange gateway using a communicationsystem capable of transmitting and receiving the data.